# OpenCV库文件
win32 {
    # #Windows平台,判断平台的位数
    OPENCV_PATH = $$PWD/../library/OpenCV/windows
    INCLUDEPATH += $$OPENCV_PATH/include/opencv2 \
                    $$OPENCV_PATH/include
    contains(QMAKE_TARGET.arch, x86_64) {
        # #64位平台
        LIBS += $$OPENCV_PATH/opencv_world490.lib
    } else {
        # #32位平台
    }
} else {
    OPENCV_PATH = $$PWD/../library/OpenCV/sdk/native
    INCLUDEPATH += $$OPENCV_PATH/jni/include/opencv2 \
                    $$OPENCV_PATH/jni/include
    # #非Windows平台
    OPENCV_PATH = $$PWD/../library/OpenCV/sdk/native
    LIBS += -lmediandk \
            $$OPENCV_PATH/staticlibs/$$ANDROID_TARGET_ARCH/libopencv_calib3d.a \
            $$OPENCV_PATH/staticlibs/$$ANDROID_TARGET_ARCH/libopencv_core.a \
            $$OPENCV_PATH/staticlibs/$$ANDROID_TARGET_ARCH/libopencv_dnn.a \
            $$OPENCV_PATH/staticlibs/$$ANDROID_TARGET_ARCH/libopencv_features2d.a \
            $$OPENCV_PATH/staticlibs/$$ANDROID_TARGET_ARCH/libopencv_flann.a \
            $$OPENCV_PATH/staticlibs/$$ANDROID_TARGET_ARCH/libopencv_gapi.a \
            $$OPENCV_PATH/staticlibs/$$ANDROID_TARGET_ARCH/libopencv_highgui.a \
            $$OPENCV_PATH/staticlibs/$$ANDROID_TARGET_ARCH/libopencv_imgcodecs.a \
            $$OPENCV_PATH/staticlibs/$$ANDROID_TARGET_ARCH/libopencv_imgproc.a \
            $$OPENCV_PATH/staticlibs/$$ANDROID_TARGET_ARCH/libopencv_ml.a \
            $$OPENCV_PATH/staticlibs/$$ANDROID_TARGET_ARCH/libopencv_objdetect.a \
            $$OPENCV_PATH/staticlibs/$$ANDROID_TARGET_ARCH/libopencv_photo.a \
            $$OPENCV_PATH/staticlibs/$$ANDROID_TARGET_ARCH/libopencv_stitching.a \
            $$OPENCV_PATH/staticlibs/$$ANDROID_TARGET_ARCH/libopencv_video.a \
            $$OPENCV_PATH/staticlibs/$$ANDROID_TARGET_ARCH/libopencv_videoio.a \
            $$OPENCV_PATH/3rdparty/libs/$$ANDROID_TARGET_ARCH/libade.a \
            $$OPENCV_PATH/3rdparty/libs/$$ANDROID_TARGET_ARCH/libcpufeatures.a \
            $$OPENCV_PATH/3rdparty/libs/$$ANDROID_TARGET_ARCH/libIlmImf.a \
            $$OPENCV_PATH/3rdparty/libs/$$ANDROID_TARGET_ARCH/liblibjasper.a \
            $$OPENCV_PATH/3rdparty/libs/$$ANDROID_TARGET_ARCH/libittnotify.a \
            $$OPENCV_PATH/3rdparty/libs/$$ANDROID_TARGET_ARCH/liblibjpeg-turbo.a \
            $$OPENCV_PATH/3rdparty/libs/$$ANDROID_TARGET_ARCH/liblibpng.a \
            $$OPENCV_PATH/3rdparty/libs/$$ANDROID_TARGET_ARCH/liblibprotobuf.a \
            $$OPENCV_PATH/3rdparty/libs/$$ANDROID_TARGET_ARCH/liblibtiff.a \
            $$OPENCV_PATH/3rdparty/libs/$$ANDROID_TARGET_ARCH/liblibwebp.a \
            $$OPENCV_PATH/3rdparty/libs/$$ANDROID_TARGET_ARCH/libquirc.a \
            $$OPENCV_PATH/3rdparty/libs/$$ANDROID_TARGET_ARCH/libtbb.a \
            $$OPENCV_PATH/3rdparty/libs/$$ANDROID_TARGET_ARCH/libtegra_hal.a \
            $$OPENCV_PATH/libs/$$ANDROID_TARGET_ARCH/libopencv_java4.so
    ANDROID_EXTRA_LIBS += $$OPENCV_PATH/libs/$$ANDROID_TARGET_ARCH/libopencv_java4.so \
}
